package io.dshubs.archives.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.dshubs.archives.dao.ArchiveBaseClassMapper;
import io.dshubs.archives.dao.ArchiveDestroyMapper;
import io.dshubs.archives.dao.ArchiveHomeMapper;
import io.dshubs.archives.entity.ArchiveBaseCategory;
import io.dshubs.archives.entity.ArchiveDestroy;
import io.dshubs.archives.service.ArchiveDestroyService;
import io.dshubs.archives.service.ArchiveHomeService;
import io.dshubs.commons.mybatis.enums.DelFlagEnum;
import io.dshubs.commons.mybatis.service.impl.BaseServiceImpl;
import io.dshubs.commons.security.user.SecurityUser;
import io.dshubs.commons.security.user.UserDetail;
import io.dshubs.commons.tools.constant.Constant;
import io.dshubs.commons.tools.enums.SuperAdminEnum;
import io.dshubs.commons.tools.page.PageData;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 档案销毁表 服务实现类
 * </p>
 *
 * @author tan
 * @since 2021-08-27
 */
@Service
public class ArchiveHomeServiceImpl implements ArchiveHomeService {

    @Autowired
    private ArchiveHomeMapper archiveHomeMapper;

    @Override
    public int selectArchiveDestroyCount() {
        return archiveHomeMapper.selectArchiveDestroyCount();
    }

    @Override
    public int selectWaitForReturnCount() {
        return archiveHomeMapper.selectWaitForReturnCount();
    }

    @Override
    public int selectBorrowOutTimeCount() {
        return archiveHomeMapper.selectBorrowOutTimeCount();
    }

    @Override
    public int selectBorrowNearOutTimeCount() {
        return archiveHomeMapper.selectBorrowNearOutTimeCount();
    }

    @Override
    public int updateBorrowStatusNearTimeOut() {
        return archiveHomeMapper.updateBorrowStatusNearTimeOut();
    }

    @Override
    public int updateBorrowStatusAlreadyTimeOut() {
        return archiveHomeMapper.updateBorrowStatusAlreadyTimeOut();
    }


}
